Skip to content

feat: Add Core Brain integration for central knowledge base - #24

Merged
dsactivi-2 merged 6 commits into
mainfrom
feat/core-brain-integration
Jan 1, 2026
Merged

feat: Add Core Brain integration for central knowledge base#24
dsactivi-2 merged 6 commits into
mainfrom
feat/core-brain-integration

Conversation

@dsactivi-2

Copy link
Copy Markdown
Owner

Summary

  • Adds client for connecting to central brain-core API (49.13.158.176:5001)
  • Implements Pre-Recall: Search core brain before AI response for context injection
  • Implements Writeback: Store Q&A pairs in core brain (append-only, no overwrites)
  • User mapping: Pass real userId to brain-core (auto-created if not exists)

New Files

  • src/brain/core-brain.ts - Core Brain API client

Changed Files

  • src/brain/index.ts - Export core-brain functions
  • src/chat/manager.ts - Add Pre-Recall + Writeback to chat flow

Features

  • coreBrainSearch() - Search central knowledge base
  • coreBrainStore() - Store memories (append-only)
  • coreBrainRecent() - Get recent memories
  • buildCoreBrainContext() - Build context string for prompt injection

Architecture

cloud-agents Chat → Pre-Recall (search brain-core)
                  → AI Response
                  → Writeback (store in brain-core)

Test plan

  • TypeScript compiles without errors
  • Pre-commit checks pass
  • Manual test: Store memory in brain-core
  • Manual test: Search memory from brain-core
  • Manual test: User auto-creation works

🤖 Generated with Claude Code

- Add core-brain.ts client for connecting to brain-core API (49.13.158.176:5001)
- Implement Pre-Recall: Search core brain before AI response for context
- Implement Writeback: Store Q&A pairs in core brain (append-only)
- User mapping: Pass real userId to brain-core (auto-created if not exists)

Features:
- coreBrainSearch(): Search central knowledge base
- coreBrainStore(): Store memories (append-only, no overwrites)
- coreBrainRecent(): Get recent memories
- buildCoreBrainContext(): Build context string for prompt injection

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jan 1, 2026

Copy link
Copy Markdown

@sentry review

github-actions Bot and others added 2 commits January 1, 2026 03:01
🤖 Auto-fixed by GitHub Actions
- POST /api/auth/reset-password (admin only)
- Validates password length (min 8 chars)
- Logs password_reset event to audit log
- Added new audit event types: password_reset, user_created, user_deleted

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jan 1, 2026

Copy link
Copy Markdown

@sentry review

github-actions Bot and others added 2 commits January 1, 2026 03:30
🤖 Auto-fixed by GitHub Actions
- src/lib/api.ts: Complete API client with all 178 backend endpoints
  - Auth, Users, Agents, Tasks, Chat, Audit, Ops, Brain, Memory
  - Settings, Enforcement, GitHub, Linear, Webhooks, Modules, Billing
  - Full TypeScript types for all API responses

- src/components/UsersPage.tsx: User management (CRUD)
  - List, create, edit, delete users
  - Password reset functionality
  - Role management (admin/user/demo)
  - User stats dashboard

- src/components/AuditPage.tsx: Audit & Ops dashboard
  - Event log with filtering
  - Blocked tasks management (approve/reject)
  - Operations statistics
  - STOP-Score monitoring

- src/components/IntegrationsPage.tsx: External integrations
  - GitHub repos and issues
  - Linear teams and issues
  - Webhook management (CRUD, test)

- Updated App.tsx with new navigation tabs

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jan 1, 2026

Copy link
Copy Markdown

@sentry review

🤖 Auto-fixed by GitHub Actions
@dsactivi-2
dsactivi-2 merged commit d939731 into main Jan 1, 2026
1 check passed
dsactivi-2 pushed a commit that referenced this pull request Jan 27, 2026
Co-authored-by: den-is9186 <257160258+den-is9186@users.noreply.github.com>
dsactivi-2 pushed a commit that referenced this pull request Mar 2, 2026
dsactivi-2 pushed a commit that referenced this pull request Mar 2, 2026
…nses

Fix MultiRepoAgent JSON parsing failures from Markdown-wrapped LLM responses
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants